package com.android.kotlincoroutinemvvmdemo
import android.os.Bundle
import com.android.kotlincoroutinemvvmdemo.base.BaseActivity
import com.android.kotlincoroutinemvvmdemo.databinding.ActivityBezierCubicToBinding

class BezierCubicToActivity : BaseActivity<ActivityBezierCubicToBinding>() {

    override fun getLayoutId() = R.layout.activity_bezier_cubic_to

    override fun init(savedInstanceState: Bundle?) {

        mBinding.select0.setOnClickListener {
            mBinding.cubicView.updateSelect(0x00)
        }

        mBinding.select1.setOnClickListener {
            mBinding.cubicView.updateSelect(0x01)
        }

        mBinding.select2.setOnClickListener {
            mBinding.cubicView.updateSelect(0x02)
        }

        mBinding.select3.setOnClickListener {
            mBinding.cubicView.updateSelect(0x03)
        }
    }
}